package com.smalljj.activity;

import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.os.Bundle;
import android.view.Window;

import com.smalljj.comm.ActivityStackControlUtil;

public class FriendActivity extends Activity {

	private PendingIntent sender;
	
	private AlarmManager alarmManager;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);// 去除标题
		setContentView(R.layout.friend);   
		ActivityStackControlUtil.add(this);
		
	}

	@Override
	protected void onDestroy() { 
        super.onDestroy(); 
        alarmManager.cancel(sender);
        //移出管理栈
        ActivityStackControlUtil.remove(this); 
	} 
}